// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-12

#ifndef JOY_DISABLE_POOL
#pragma push_macro("new")
#undef new
    void* operator new (size_t s)
    {
        return CJoyPoolObject::Alloc(s);
    }
    void* operator new (size_t s, PCSTR fileName, int nLine)
    {
        fileName;nLine;
        return CJoyPoolObject::Alloc(s);
    }
    void operator delete (void* p)
    {
        CJoyPoolObject::Free(p);
    }
#pragma pop_macro("new")
#endif
